package com.a2020111222.test.dao.impl;

import com.a2020111222.test.dao.userNotesDao;
import com.a2020111222.test.pojo.userNotes;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Repository;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2022/11/6 12:25
 */
@Repository("userNotesDao")
public class userNotesDaoImpl implements userNotesDao {
    @Override
    public void save() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("mappers/applicationContext-Notes.xml");
        userNotes userNotes = (userNotes)applicationContext.getBean("userNotes");
        System.out.println(userNotes);
        System.out.println("userNotesDaoImpl");
    }

    @Override
    public void addUser() {
        System.out.println("添加用户");
    }

    @Override
    public void delUser() {
        System.out.println("删除用户");
    }

    @Override
    public void update() {
        System.out.println("更新用户");
    }

    @Override
    public void select() {
        System.out.println("查询用户");
    }
}
